/**  
* @author renbangjie renbangjie@126.com  
* @date 2015-8-28 下午3:09:04
* @version V1.0  
* <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
*/
package com.yjd.comm.formater;

import org.springframework.format.FormatterRegistrar;
import org.springframework.format.FormatterRegistry;


/**
 * formatter注册
 * @author renbangjie renbangjie@126.com
 * @date 2015-8-28 下午3:09:04
 */
public class YjdFormatterRegistrar implements FormatterRegistrar {
	
	/* 
	 * @param registry
	 * @see org.springframework.format.FormatterRegistrar#registerFormatters(org.springframework.format.FormatterRegistry)
	 */
	@Override
	public void registerFormatters(FormatterRegistry registry) {
		registry.addFormatterForFieldAnnotation(new DateFormaterHandler());
		registry.addFormatterForFieldAnnotation(new DateStringFormaterHandler());
	}

}
